home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / popularity-contest.config < prev    next >
Text File  |  2008-10-20  |  747b  |  31 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. conffile=/etc/popularity-contest.conf
  6.  
  7. . /usr/share/debconf/confmodule
  8.  
  9. if [ -f $conffile ] ; then
  10.        # Make sure the config file have the USEHTTP entry
  11.        if grep -q USEHTTP $conffile; then
  12.            :
  13.        else
  14.            # Make sure existing installations keep using SMTP as
  15.            # before, until the administrator enables HTTP manually.
  16.        # [pere 2005-07-07]
  17.            echo "USEHTTP=\"no\"" >> $conffile
  18.        fi
  19.  
  20.        . $conffile
  21.        if [ yes = "$PARTICIPATE" ] ; then
  22.                PARTICIPATE=true
  23.        else
  24.                PARTICIPATE=false
  25.        fi
  26.        db_set popularity-contest/participate "$PARTICIPATE"
  27. fi
  28.  
  29. db_input medium popularity-contest/participate || [ $? -eq 30 ]
  30. db_go || true
  31.